package nancal.mp.db.mongo.entity.dev

import nancal.mp.db.mongo.OpsWorkStatusEnum
import nbcp.base.annotation.Require
import nbcp.base.db.IdName
import nbcp.base.db.annotation.Cn
import nbcp.base.db.annotation.DbEntityGroup
import nbcp.base.model.BaseIdEntity
import org.springframework.data.mongodb.core.mapping.Document
import java.time.LocalDateTime


@Document
@DbEntityGroup("dev")
@Cn("应用部署设置服务器")
class OpsBuildQueue(
    @Require
    var gitId: String = "",
    @Require
    var name: String = "",
    var targetEnv: String = "", //目标 appDeploySettingCode
    var clusterCode: String = "",
    var gitBranch: String = "",
    var createBy: IdName = IdName(),
    var startAt: LocalDateTime = LocalDateTime.now(),
    var doneAt: LocalDateTime = LocalDateTime.now(),
    var msg: String = "",
    var status: OpsWorkStatusEnum = OpsWorkStatusEnum.waiting
) : BaseIdEntity() {

}